<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var jsonObject = {
        is_menu_open: 1,
        selfmenu_info: {
            button: [
                {
                    type: "click",
                    name: "今日歌曲",
                    key: "V1001_TODAY_MUSIC"
                },
                {
                    name: "菜单",
                    sub_button: {
                        list: [
                            {
                                type: "view",
                                name: "搜索",
                                url: "http://www.soso.com/"
                            },
                            {
                                type: "view",
                                name: "搜索",
                                url: "http://v.qq.com/"
                            },
                            {
                                type: "click",
                                name: "赞一下我们",
                                key: "V1001_GOOD"
                            }
                        ]
                    }
                }
            ],
        }
    }
    console.log("is_menu_open = " + jsonObject.is_menu_open);
    console.log("type = " +jsonObject.selfmenu_info.button[0].type);
    console.log("name = " +jsonObject.selfmenu_info.button[0].name);
    console.log("key = " +jsonObject.selfmenu_info.button[0].key);
    console.log("name = " +jsonObject.selfmenu_info.button[1].name);
    console.log("type = " +jsonObject.selfmenu_info.button[1].sub_button.list[0].type);
    console.log("name = " +jsonObject.selfmenu_info.button[1].sub_button.list[0].name);
    console.log("url = " +jsonObject.selfmenu_info.button[1].sub_button.list[0].url);
    console.log("type = " +jsonObject.selfmenu_info.button[1].sub_button.list[1].type);
    console.log("name = " +jsonObject.selfmenu_info.button[1].sub_button.list[1].name);
    console.log("url = " +jsonObject.selfmenu_info.button[1].sub_button.list[1].url);
    console.log("type = " +jsonObject.selfmenu_info.button[1].sub_button.list[2].type);
    console.log("name = " +jsonObject.selfmenu_info.button[1].sub_button.list[2].name);
    console.log("key = " +jsonObject.selfmenu_info.button[1].sub_button.list[2].key);
</script>
</body>
</html>